package com.test.utils;

import java.util.Properties;

/**
 * Created by ZZF on 2017/6/27.
 */
public class RederProperties {
    public static void main(String[] args) {
        Properties prop = new Properties();
//        Map<String ,Object> propertiesMap=new HashMap<>();
//
//        try {
//            //读取属性文件a.properties
//            InputStream in = new BufferedInputStream(new FileInputStream("..\\newSSHM\\src\\main\\resources\\config.properties"));
//            prop.load(in);     ///加载属性列表
//            Iterator<String> it = prop.stringPropertyNames().iterator();
//            while (it.hasNext()) {
//                String key = it.next();
//                propertiesMap.put(key,prop.getProperty(key));
//                System.out.println(key + ":" + prop.getProperty(key));
//            }
//            in.close();
//
////            ///保存属性到b.properties文件
////            FileOutputStream oFile = new FileOutputStream("..\\newSSHM\\src\\main\\resources\\b.properties", true);//true表示追加打开
////            prop.setProperty("phone", "10086");
////            prop.store(oFile, "The New properties file");
////            oFile.close();
//        } catch (Exception e) {
//            System.out.println(e);
//        }


    }


}
